using System;
using LoggingMagic.Extensions;
using LoggingMagic.Injectors.StaticField.Base;
using LoggingMagic.Injectors.StaticField.Parameters;
using Mono.Cecil;

namespace LoggingMagic.Injectors.StaticField.StaticFieldWithMethodName
{
    internal class StaticFieldMethodCallWithMethodNameInjector : StaticFieldMethodCallInjector
    {
        public StaticFieldMethodCallWithMethodNameInjector(ModuleDefinition module, IStaticFieldParameters parameters)
            : base(module, parameters)
        {
        }

        protected override string EnteringText(MethodDefinition method)
        {
            return String.Format("{0} - Entering", method.MethodName());
        }
    }
}